<?php
$filename = '/home/rockedg1/tmp/test5.png';
$filename_out = '/home/rockedg1/tmp/badge9_out.png';
//$src = '/tmp/badge9_out.png';  // source folder or file
$dest = '/home/rockedg1/public_html/badge/badge9_out.png';   // destination folder or file

   shell_exec("cp -r $filename_out $dest");
   echo "complete...."

?>